class Job < ActiveRecord::Base
	validates_presence_of :name, :department, :body
	
	def to_param
    "#{id}-#{name.downcase.gsub(/[^[:alnum:]]/,'-')}".gsub(/-{2,}/,'-')   
  end
end
